package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lmshe
 * @since 2018-07-12
 */
@TableName("w_project_table_property")
public class ProjectTableProperty extends Model<ProjectTableProperty> {

    private static final long serialVersionUID = 1L;

    /**
     * 表属性
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 表id
     */
	@TableField("project_table_id")
	private Integer projectTableId;
    /**
     * 中文描述
     */
	@TableField("CN_name")
	private String CNName;
    /**
     * 英文名称
     */
	@TableField("EN_name")
	private String ENName;
    /**
     * 长度
     */
	private Integer length;
    /**
     * 是否可为空，1表示Yes  0表示No
     */
	@TableField("is_null")
	private Integer isNull;
    /**
     * 数据库类型
     */
	@TableField("db_type")
	private String dbType;
    /**
     * 代码类型
     */
	@TableField("code_type")
	private String codeType;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getProjectTableId() {
		return projectTableId;
	}

	public void setProjectTableId(Integer projectTableId) {
		this.projectTableId = projectTableId;
	}

	public String getCNName() {
		return CNName;
	}

	public void setCNName(String CNName) {
		this.CNName = CNName;
	}

	public String getENName() {
		return ENName;
	}

	public void setENName(String ENName) {
		this.ENName = ENName;
	}

	public Integer getLength() {
		return length;
	}

	public void setLength(Integer length) {
		this.length = length;
	}

	public Integer getIsNull() {
		return isNull;
	}

	public void setIsNull(Integer isNull) {
		this.isNull = isNull;
	}

	public String getDbType() {
		return dbType;
	}

	public void setDbType(String dbType) {
		this.dbType = dbType;
	}

	public String getCodeType() {
		return codeType;
	}

	public void setCodeType(String codeType) {
		this.codeType = codeType;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ProjectTableProperty{" +
			"id=" + id +
			", projectTableId=" + projectTableId +
			", CNName=" + CNName +
			", ENName=" + ENName +
			", length=" + length +
			", isNull=" + isNull +
			", dbType=" + dbType +
			", codeType=" + codeType +
			"}";
	}
}
